package com.yizhu.zczy.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yizhu.zczy.common.utils.PageUtils;
import com.yizhu.zczy.system.entity.RoleRightsEntity;
import com.yizhu.zczy.system.vo.PermissionsVo;

import java.util.List;
import java.util.Map;

/**
 * 角色对应权限表
 *
 * @author guoyz
 * @email guoyz@mail.com
 * @date 2021-06-24 18:31:46
 */
public interface RoleRightsService extends IService<RoleRightsEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 根据角色查询权限信息
     * @param roleId
     * @return
     */
    List<PermissionsVo> GetPermissionsByRole(Integer roleId);

    /**
     * 根据角色id修改权限的信息
     * @param roleId
     * @param popedomIds
     */
    void modifyPermissionsByRoleId(Integer roleId, List<Integer> popedomIds);
}

